Object Layout of Custom Classes |
|
The object layout is an XML representation of a custom class. It is similar to the XML structure present in a SOAP message. The following is the syntax of the object layout.
<ClassName derived="PackageName::ClassName"> <AttributeName changeability="frozen | addOnly | changeable" required="true | false">PrimitiveType | DerivedType</AttributeName> <!--Repeating AttributeNames--> <NestedClassName derived="PackageName::ClassName" derivedRelation="PackageName::ClassName"> <AttributeName changeability="frozen | addOnly | changeable" required="true | false" size="">PrimitiveType | DerivedType</AttributeName> <!-- deep nesting of classes is also possible --> </NestedClassName> <!--Repeating NestedClassName s--> </ClassName>
The object layout comprises the following elements:
- The root node is the name of the class.
- Each immediate child is an attribute in the class, and the name of the child node is the name of the attribute.
- The value of an attribute is the name of a primitive (string, i2, i8, r4, r8, dateTime, cy, boolean).
You can view the object layout only after you create the custom class using the WS-AppServer Package editor.